class_name MainMenuView
extends BaseView

#region 属性
@onready var start_btn: Button = %StartBtn
@onready var load_btn: Button = %LoadBtn
@onready var record_btn: Button = %RecordBtn
@onready var quit_btn: Button = %QuitBtn
@onready var setting_btn: TextureButton = %SettingBtn
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
func init_view():
	super.init_view()
	start_btn.pressed.connect(_start_btn_pressed)
	load_btn.pressed.connect(_load_btn_pressed)
	record_btn.pressed.connect(_record_btn_pressed)
	setting_btn.pressed.connect(_setting_btn_pressed)
	quit_btn.pressed.connect(_quit_btn_pressed)
func on_enter(args:Dictionary = {}):
	super.on_enter()
	GameManager.translate_game_state(GameEnum.GameState.MainMenu)
func on_pause(args:Dictionary = {}):
	super.on_pause()
func on_resume(args:Dictionary = {}):
	super.on_resume()
func on_exit(args:Dictionary = {}):
	super.on_exit()
func get_view_state() -> GameEnum.ViewState:
	return super.get_view_state()
#endregion
#region 公共方法
#endregion
#region 私有方法
func _start_btn_pressed():
	GameManager.start_new_game()
func _load_btn_pressed():
	pass
func _record_btn_pressed():
	pass
func _setting_btn_pressed():
	pass
func _quit_btn_pressed():
	GameManager.quit_game()
#endregion
#region 生命周期函数
#endregion
